/**
 * Copyright (c) 2007, Ashish Lijhara
 * All rights reserved.
 *
 * ImageButton.java
 *
 */

package crazy.java.Aetas;

import javax.swing.Icon;
import javax.swing.JButton;

/**
 *
 * @author Ashish (Java Crazy)
 */
public class ImageButton extends JButton {
    public ImageButton(Icon icon, Icon pressed, Icon rollover) {
        super(icon);
        setFocusPainted(false);
        setRolloverEnabled(true);
        setRolloverIcon(rollover);
        setPressedIcon(pressed);
        setBorderPainted(false);
        setContentAreaFilled(false);
    }
}
